package com.itqf.springboot_mvc.controller;

import com.itqf.springboot_mvc.pojo.Product;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * projectName: qk_javaproject
 *
 * @author: 肖成扬
 * time: 2021/9/8 14:52
 * description:
 */
@Controller
@ResponseBody
@RequestMapping("product")
public class twoContrller {
    @GetMapping ("list")
    public  Object list(Product product){
        System.out.println("product = " + product);

        return product;

    }
}
